package com.example.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisplusdemo.model.domain.Cart;
import com.example.mybatisplusdemo.model.dto.UserCartProductDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lqj
 * @since 2025-06-30
 */
public interface CartMapper extends BaseMapper<Cart> {

    List<UserCartProductDTO> selectCartDetailsByUserId(@Param("userId") Long userId);
}
